﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DevelopAssistant.GuiTest
{
    public partial class Form8 : Form
    {
        public Form8()
        {
            InitializeComponent();
        }

        private void Form8_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            dt.Columns.Add(new DataColumn("ids", typeof(string[])));
            dt.Columns.Add(new DataColumn("name",typeof(string)));

            string[] strs = new string[] { "fasfsd", "fasdf" };

            DataRow row = dt.NewRow();
            row["ids"] = strs;
            row["name"] = "asdfsad";

            dt.Rows.Add(row);

            this.dataGridView1.DataSource = dt;

        }

        private void button1_Click(object sender, EventArgs e)
        {
            ICSharpCode.WinFormsUI.Forms.MessageBoxSize messageClientSize = new ICSharpCode.WinFormsUI.Forms.MessageBoxSize(280,180);
            ICSharpCode.WinFormsUI.Forms.MessageForm.Show(this, "请<font size='12' color='red' onclick='alert('11')'>王</font>稍等，系统正在处理", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information, messageClientSize);
        }

        public void alert(string message)
        {

        }
    }
}
